package com.exam.vo;

import com.exam.pojo.Question;
import com.exam.pojo.Select;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionVO {
    private Integer id;
    private String questionTitle;
    private String questionContent;
    private Integer questionType;
    private String questionImage;
    private String rightAnswer;
    private String analysis;
    private Integer bankId;
    private List<Select> QuestionSelect;
    public QuestionVO(Question question){
        this.id=question.getId();
        this.questionTitle=question.getQuestionTitle();
        this.questionContent=question.getQuestionContent();
        this.questionType=question.getQuestionType();
        this.questionImage=question.getQuestionImage();
        this.rightAnswer=question.getRightAnswer();
        this.analysis=question.getAnalysis();
        this.bankId=question.getBankId();
        this.QuestionSelect=question.getQuestionSelect();
    }
}
